﻿using Peninsula.DataAccess.POCO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Peninsula.Web.Models.Sessions
{
    public class HouseholdsSession
    {
        /// <summary>
        /// 用户标识 id
        /// </summary>
        public string Identity
        {
            get
            {
                return HouseholdsEntiy.Id;
            }
         }

        /// <summary>
        /// 用户显示名称
        /// </summary>
        public string UserName
        {
            get
            {
                return HouseholdsEntiy.UserName;
            }
                
         }
        
        // TODO构造函数
        public HouseholdsSession(Households households)
        {
            HouseholdsEntiy = households;
        }

        public Households HouseholdsEntiy { get; private set; }
    }
}